package com.easy.dfc.service;

import com.easy.dfc.Utils.PagingUtil;
import com.easy.dfc.entity.FactorySetWithBLOBs;
import com.easy.dfc.mapper.FactorySetMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by VULCANTSeries on 2017/5/17.
 */
@Service
public class FactorySetService {

    @Resource
    private FactorySetMapper factorySetMapper;

    public List<FactorySetWithBLOBs> selectBy20(PagingUtil pagingUtil) {
        return factorySetMapper.selectBy20(pagingUtil);
    }

    public FactorySetWithBLOBs selectByFactoryId(int FactoryId) {
        return factorySetMapper.selectByFactoryId(FactoryId);
    }

    public int updateByPrimaryKeySelective(FactorySetWithBLOBs factorySetWithBLOBs) {
        return factorySetMapper.updateByPrimaryKeySelective(factorySetWithBLOBs);
    }

    public FactorySetWithBLOBs selectFactoryIdBySkuId(int skuId) {
        return factorySetMapper.selectFactoryIdBySkuId(skuId);
    }
}
